<?php
/**
 * 横幅验证器模型
 * @Author: 聂哥
 * @Date: 2022-11-26 14:51:23
*/

namespace app\admin\validate;

use think\Validate;

class Truck extends Validate
{
    protected $rule =   [
        'type'  => 'require',   
        'truck_img' => 'require'	
    ];
    
    protected $message  =   [
        'type.require' => '车型不能为空',
		'truck_img.require' => '货车图片不能为空'
    ];
	
	protected $scene = [
        'add'  =>  ['type','truck_img'],
    ];
    
}